using System;
using System.Collections.Generic;

namespace BookingSystem.Entities
{
    public class Guest :Base
    {
        public Guest()
        {
            Bookings = new List<Booking>();
        }

        public Guest(int id)
        {
            Id = id;
        }

        public override string ToString()
        {
            return this.Fullname();
        }

        public virtual string Fullname()
        {
            return string.Format("{0} {1}", this.FirstName, this.LastName);
        }

        public virtual int Id { get; private set; }
        public virtual string FirstName { get; set; }
        public virtual string LastName { get; set; }
        public virtual string Address { get; set; }
        public virtual string Postalcode { get; set; }
        public virtual string City { get; set; }
        public virtual string Email { get; set; }
        public virtual string Phonenumber { get; set; }
        public virtual bool Member { get; set; }
        public virtual DateTime Birthday { get; set; }
        public virtual IList<Booking> Bookings { get; set; } 

    }
}